﻿using System.Collections.Generic;
using DevFramework.Business.Abstract;
using DevFramework.Business.DependencyResolvers.Ninject;
using DevFramework.Entities.Concrete;

namespace DevFramework.Service
{
    public class LangaugeWordService : ILanguageWordService
    {
        private readonly ILanguageWordService _languageWordService;
        public LangaugeWordService()
        {
            _languageWordService = InstanceFactory<ILanguageWordService>.GetInstance();
        }

        public List<LanguageWord> GetAll()
        {
            return _languageWordService.GetAll();
        }

        public List<LanguageWord> GetByLanguage(int langaugeId)
        {
            return _languageWordService.GetByLanguage(langaugeId);
        }

        public LanguageWord GetValue(int langaugeId, string code)
        {
            return _languageWordService.GetValue(langaugeId, code);
        }
    }
}
